package com.t10;

/**
 * Created by xuyiwei on 2018/7/21.
 */
class Parcel4{
    private class PContents implements Contents{
        private int i = 11;
        public int value() {return i;}
    }
    private class PDestination implements Destination{
        private String label;
        public PDestination(String label) {
            this.label = label;
        }
        public String readLabel() {
            return label;
        }
    }
    public PDestination destination(String s){
        return new PDestination(s);
    }
    public Contents contents(){
        return new PContents();
    }

}
public class TestParcel {
    public static void main(String[] args) {
        Parcel4 p = new Parcel4();
        Contents c = p.contents();
        Destination d = p.destination("s");
    }
}
